package com.beanverify.inter.verifier.impl;

import java.lang.annotation.Annotation;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.beanverify.inter.AnnotationVerifier;



public class VerifyNull implements AnnotationVerifier{
	private static final Logger LOG = LoggerFactory.getLogger(VerifyNull.class);

	public boolean doVerify(Object param, String paramName, Annotation annotation) {
		if (param == null || "".equals(param)) {
			LOG.debug(String.format("[%s]参数为空--×",paramName));
			return false;
		}
		LOG.debug(String.format("[%s]参数不为空--√",paramName));
		return true;
	}
}